package wsc.mcis.androidDevelpment;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;

public class NewSheetActivity extends Activity {
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.new_sheet);

  Spinner templateSpinner = (Spinner)findViewById(R.id.newSheetSpinnerTemplate);
  
  ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, android.R.id.text1);
  spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  templateSpinner.setAdapter(spinnerAdapter);
  
  spinnerAdapter.add("value");
  spinnerAdapter.add("template2");
  spinnerAdapter.notifyDataSetChanged();

  }
}
